﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Mobile_H.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Query_Cart
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <style type="text/css">
        tr
        {
            height: 35px;
            text-align: right;
            background-color: #fff;
        }
        tr.dis
        {
            background-color: #FFFFC2;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    <div style="background-color: #8094AE; height: 50px; margin-top: 0px;">
        <h2 style="color: White; vertical-align: middle;">
            &nbsp;COUNT</h2>
    </div>
    <div id="page1">
        <table style="width: 100%; font-size: medium; color: #004080; padding: 5px; font-weight: bold;">
            <tr class="dis">
                <td>
                    Size : &nbsp;
                </td>
                <td style="text-align: left;">
                    <input type="text" id="txtsize" />
                </td>
            </tr>
            <tr class="dis">
                <td>
                    Cart : &nbsp;
                </td>
                <td style="text-align: left;">
                    <input type="text" id="txtcart" />
                </td>
            </tr>
        </table>
        <div style="float: left; width: 40%">
            <input type="button" id="back" value="Back" style="width: 100%" /></div>
        <div style="float: right; width: 45%">
            <input type="button" id="next" value="Next" style="width: 100%" /></div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
<% if (false)
   { %>
<script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>
<% } %>

<script type="text/jscript">
    $(function () {
        $("#back").click(function () {
            window.location = '<%: Url.Action("Index") %>';
        });

        $("#next").click(function () {
            if (($("#txtsize").val() == "") && ($("#txtcart").val() == "")) {
                alert("Input Data Search");
                return;
            }
            if ($("#txtcart").val() != "") {
                window.location = '<%: Url.Action("Query_CartNo") %>'+'?cart='+ $("#txtcart").val()+ '&size=' + $("#txtsize").val() ;
            } else {
                window.location = '<%: Url.Action("Query_Size") %>' + '?size=' + $("#txtsize").val();
            }
        });
    });
</script>
</asp:Content>
